package com.letoken.platform.repo.admin.dao;

import com.letoken.platform.repo.admin.po.AdminRoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.letoken.platform.repo.admin.res.system.QueryAdminMenuTreeRes;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 后台角色菜单表 Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2022-11-23
 */
public interface AdminRoleMenuMapper extends BaseMapper<AdminRoleMenu> {

    List<String> selectMenuListByAdminUserRoleId(@Param("adminRoleId") Integer adminRoleId);

    List<QueryAdminMenuTreeRes> selectMenuListByRole(@Param("adminRoleId") Integer adminRoleId);

    List<Integer> selectRoleIdListByMenuId(@Param("menuIdList") List<Integer> menuIdList);


    List<QueryAdminMenuTreeRes> getMenuListByRole(@Param("adminRoleId") Integer adminRoleId);

    List<String> getMenuListByAdminUserRoleId(@Param("adminRoleId") Integer adminRoleId);

    QueryAdminMenuTreeRes getTree(@Param("adminRoleId") Integer adminRoleId,@Param("uri") String uri);
}
